#ifndef NANE_SOUNDCODECMANAGER_H
#   define  NANE_SOUNDCODECMANAGER_H

#   include "nane/CodecSystem/Sound/SoundCodecSystem.h"
#   include "nane/core/Manager.h"

namespace nane
{
    struct SoundCodecCompareExtension
    {
        std::string extension;
        
        SoundCodecCompareExtension( const std::string& _filename )
        {
            size_t pos = _filename.rfind('.');
            if( pos != std::string::npos )
            {
                extension = _filename.substr(pos+1);
            }
        }
        
        bool operator()( const std::string& _key )
        {
            return extension == _key;
        }
    };
    
    typedef Manager<std::string, SoundCodecSystem, SoundCodecCompareExtension> SoundCodecManager;
}   // namespace nane

#endif	// NANE_SOUNDCODECMANAGER_H
